package com.atguigu.lease;

import com.atguigu.lease.common.minio.MinioConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * projectName: com.atguigu.lease
 *
 * @author: 赵伟风
 * description:
 *
 * 自定义的配置类不想加载：
 *   方案： 正常给人家添加属性
 *   方案： @ComponentScan 排除指定类
 *   方案： 条件化注入 @ConditionalOnProperty(prefix = "minio", name = "endpoint")
 */

@ComponentScan(
        /* excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,
                classes = MinioConfiguration.class)*/
        excludeFilters = @ComponentScan.Filter(type =FilterType.ASSIGNABLE_TYPE,classes = MinioConfiguration.class)
)
@SpringBootApplication
public class AppWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(AppWebApplication.class,args);
    }
}
